<?php
require('bootstrap.php');

// Check if the application has already been installed
if (file_exists("install") && is_dir("install"))
{
echo "The install directory needs to be removed before you can use this program.";
exit;
}

if ($multiserver == true)
{
pickhost();
} else {
$server = $servername;
}

//	$mtime = microtime();
//	$mtime = explode(' ', $mtime);
//	$mtime = $mtime[1] + $mtime[0];
//	$starttime = microtime(true);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><?php echo $sitename; ?> <?php echo $siteversion; ?></title>
	<link rel="Stylesheet" type="text/css" href="http://<?php echo $server; ?>.<?php echo $domain; ?>/style/jqueryui.css" />
	<link rel="Stylesheet" type="text/css" href="http://<?php echo $server; ?>.<?php echo $domain; ?>/style/global.css" media="screen" />
	<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
	<script type="text/javascript" src="http://<?php echo $server; ?>.<?php echo $domain; ?>/js/media.js"></script>
	<script type="text/javascript" src="http://<?php echo $server; ?>.<?php echo $domain; ?>/js/jquery.js"></script>
	<script type="text/javascript" src="http://<?php echo $server; ?>.<?php echo $domain; ?>/js/jqueryui.js"></script>
<script type="text/javascript" src="http://<?php echo $server; ?>.<?php echo $domain; ?>/js/progress.js"></script>
<script type="text/javascript" src="http://<?php echo $server; ?>.<?php echo $domain; ?>/js/replace.js"></script>
</head>
<body>
<div id="container">
	<div id="head" role="banner">
		<a id="skip" href="#content">Skip to content</a>
		<h1 style="font-size: 40pt"><?php echo $sitename; ?><sup>Alpha</sup></h1><h2 style="display: inline">Sharing audio has never been so easy!</h2>
		<menu>
			<li><a href="/">Home</a></li>
			<li><a href="/about">About</a></li>
<li><a href="/stats">Statistics</a></li>
<li><a href="/api">API</a></li>
			<li><a href="/contact">Contact us</a></li>
		</menu>
	</div>
	<div id="content" role="main">

